import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import Layout from './components/Layout'
import VueResource from 'vue-resource'
import VueDND from 'awe-dnd'
import _ from 'lodash'
import router from '@/router/index.js'
import VueLazyload from 'vue-lazyload'
require('swiper/dist/css/swiper.css')
import VueAwesomeSwiper from 'vue-awesome-swiper'

Vue.use(VueAwesomeSwiper)
Vue.use(ElementUI)
Vue.use(VueResource)
Vue.use(VueDND)
Vue.use(VueLazyload, {
  preLoad: 6,
  error: require('@/assets/images/bg.png'),
  loading: require('@/assets/images/bg.png'),

  // error: 'https://gw.alicdn.com/tps/i1/TB147JCLFXXXXc1XVXXxGsw1VXX-112-168.png',
  // loading: 'https://gw.alicdn.com/tps/i1/TB147JCLFXXXXc1XVXXxGsw1VXX-112-168.png',
  attempt: 1,
  listenEvents: [ 'scroll' ]
})

new Vue({
  el: '#app',
  router,
  template: '<Layout />',
  components: {
		Layout
	}
})
